package com.eastfair.pay.dto;

import com.eastfair.core.base.entity.SuperEntity;
import com.eastfair.pay.enums.InvoiceApplyBusinessTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 实体类
 * 发票申请
 * </p>
 *
 * @author gj
 * @since 2022-06-23
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "InvoiceApplyUpdateDTO", description = "发票申请")
public class InvoiceApplyUpdateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @NotNull(message = "请填写主键", groups = SuperEntity.Update.class)
    private Long id;

    /**
     * 是否启用：1是；0否
     */
    @ApiModelProperty(value = "是否启用：1是；0否")
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    private Integer isDeleted;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    private Long subsystemId;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    private Long tenantId;
    /**
     * 合同id,结算单id
     */
    @ApiModelProperty(value = "合同id,结算单id")
    private Long businessId;
    /**
     * 结算类型#{H:合同;J:结算单;}
     */
    @ApiModelProperty(value = "结算类型#{H:合同;J:结算单;}")
    private InvoiceApplyBusinessTypeEnum businessType;
    /**
     * 客户id
     */
    @ApiModelProperty(value = "客户id")
    private Long cutomerId;
    /**
     * 客户名称
     */
    @ApiModelProperty(value = "客户名称")
    @Size(max = 255, message = "客户名称长度不能超过255")
    private String cutomerName;
    /**
     * 发票抬头
     */
    @ApiModelProperty(value = "发票抬头")
    @Size(max = 255, message = "发票抬头长度不能超过255")
    private String invoiceTitle;
    /**
     * 税号
     */
    @ApiModelProperty(value = "税号")
    @Size(max = 255, message = "税号长度不能超过255")
    private String invoiceDutyParagraph;
    /**
     * 费用类型（数据字典）
     */
    @ApiModelProperty(value = "费用类型（数据字典）")
    @Size(max = 255, message = "费用类型（数据字典）长度不能超过255")
    private String costType;
    /**
     * 开票单位地址
     */
    @ApiModelProperty(value = "开票单位地址")
    @Size(max = 255, message = "开票单位地址长度不能超过255")
    private String companyAddress;
    /**
     * 开票单位电话
     */
    @ApiModelProperty(value = "开票单位电话")
    @Size(max = 255, message = "开票单位电话长度不能超过255")
    private String companyTel;
    /**
     * 经手人id
     */
    @ApiModelProperty(value = "经手人id")
    private Long applicantId;
    /**
     * 经手人名称
     */
    @ApiModelProperty(value = "经手人名称")
    @Size(max = 255, message = "经手人名称长度不能超过255")
    private String applicantName;
    /**
     * 展会id
     */
    @ApiModelProperty(value = "展会id")
    private Long exhibitionId;
    /**
     * 展会名称
     */
    @ApiModelProperty(value = "展会名称")
    @Size(max = 255, message = "展会名称长度不能超过255")
    private String exhibitionName;
    /**
     * 对方账号
     */
    @ApiModelProperty(value = "对方账号")
    @Size(max = 255, message = "对方账号长度不能超过255")
    private String bankAccountNum;
    /**
     * 对方开户行
     */
    @ApiModelProperty(value = "对方开户行")
    @Size(max = 255, message = "对方开户行长度不能超过255")
    private String bankName;
    /**
     * 成功开票数量
     */
    @ApiModelProperty(value = "成功开票数量")
    private Integer successNum;
    /**
     * 系统code
     */
    @ApiModelProperty(value = "系统code")
    @Size(max = 20, message = "系统code长度不能超过20")
    private String systemCode;
    /**
     * 开票金额
     */
    @ApiModelProperty(value = "开票金额")
    private BigDecimal invoiceAmount;
    /**
     * 申请人ID
     */
    @ApiModelProperty(value = "申请人ID")
    private Long applicationId;
    /**
     * 申请人姓名
     */
    @ApiModelProperty(value = "申请人姓名")
    @Size(max = 255, message = "申请人姓名长度不能超过255")
    private String applicationName;
    /**
     * 收件人
     */
    @ApiModelProperty(value = "收件人")
    @Size(max = 255, message = "收件人长度不能超过255")
    private String addressee;
    /**
     * 收件人地址
     */
    @ApiModelProperty(value = "收件人地址")
    @Size(max = 255, message = "收件人地址长度不能超过255")
    private String toAddress;
    /**
     * 收件人手机号
     */
    @ApiModelProperty(value = "收件人手机号")
    @Size(max = 255, message = "收件人手机号长度不能超过255")
    private String mobile;
    /**
     * 收件人邮箱
     */
    @ApiModelProperty(value = "收件人邮箱")
    @Size(max = 255, message = "收件人邮箱长度不能超过255")
    private String mailbox;
    /**
     * 发票类型（数据字典)
     */
    @ApiModelProperty(value = "发票类型（数据字典)")
    @Size(max = 255, message = "发票类型（数据字典)长度不能超过255")
    private String invoiceType;

    /**
     * 开票状态 数据字典
     */
    @ApiModelProperty(value = "开票状态 数据字典")
    private String invoiceState;
}
